<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<style>
<!--
.wr{font-size: 12pt; line-height: 22px}
.wr1 {	FONT-SIZE: 12px; LINE-HEIGHT: 200%}
.wr2 {	FONT-SIZE: 14px; LINE-HEIGHT: 200%}
.wr3 {	FONT-SIZE: 12px}
.wr4 {	FONT-SIZE: 12px; LINE-HEIGHT: 150%}
// -->
</style>
<script type="text/javascript">
	function check() {
		var username = document.getElementById("username").value;
		if(username == 0){
			document.getElementById("msg").innerHTML='<font color="red" size="5"><b>地球人，请输入工号！～</b></font>';
			return false;
		}
		var reg=/^([0-9]|[\-])+$/g ;
       	if(username.length<4 || username.length>20 || !reg.exec(username)){
       		document.getElementById("msg").innerHTML='<font color="red" size="5"><b>地球人，请输入正确的工号！～</b></font>';
        	return false;
       	}
		return true;
	}
	
</script>
<title>登陆界面-学校内部工资管理系统</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body bgcolor="#BDE7FD" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
		<table width="500" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td width="50">
					&nbsp;
				</td>
				<td>
					<img src="images/ht01.jpg" width="65" height="65">
				</td>
				<td>
					<%--<img src="images/ht02.jpg" width="320" height="34"
						alt="学校内部工资管理系统">
				--%></td>
			</tr>
		</table>
		<table width="100%" border="0" cellspacing="0" cellpadding="0"
			bgcolor="#BDE7FD">
			<tr>
				<td class="wr2">
					<div align="center">
					<font color="green" size="6"><b>学校内部工资管理系统登录界面</b></font>
					</div>
				</td>
			</tr>
			<tr>
				<td>&nbsp;</td>
			</tr>
		</table>
		<form action="LoginAction" method="post">
		
		<table width="100%" border="0" cellspacing="0" cellpadding="0"
			bgcolor="#BDE7FD">
				
				<tr>
				<td class="wr2">
					<div align="center">
					
					<font color="blue"><b>工号</b></font>	: <input name="username" id="username"/><br><br>
					<font color="blue"><b>密码</b></font>	：<input type="password" name="passwd" id="passwd"/><br><br>
						<input type="submit" value="登陆" onclick='return check()'/> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<input type="reset" value="重置" /> <br><br>
					</div>
				</tr>
		</table>
		</form>
		<div id="msg" align="center">
		
		</div>
		<p align="center">
			<%
				String mssg=(String)request.getAttribute("mssg");
				if (mssg != null) { 
			%>
					<font color="red" size="2"><b><%=mssg %></b></font>
			<% } %>
			
		</p>
	</body>
</html>
